<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ESTORE</title>		
<link rel="stylesheet" type="text/css" href="/css/style02.css" charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="/css/dropdown.css" />
<link rel="stylesheet" href="/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script>	
<script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
$("ul.subnav").parent().append("<span></span>");
$("ul.topnav li span").click(function() {
$(this).parent().find("ul.subnav").slideDown('fast').show();			
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").slideUp('slow');
});
}).hover(function() {
$(this).addClass("subhover");
}, function(){
$(this).removeClass("subhover");
});			
});
</script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("area[rel^='prettyPhoto']").prettyPhoto({autoplay_slideshow: false,slideshow: false,deeplinking: false});
$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({slideshow:false, autoplay_slideshow: false,deeplinking: false});
$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({slideshow:false, autoplay_slideshow: false, hideflash: true,deeplinking: false});
});
</script>			
</head>
<body>
<?php require_once 'CMS/Language.php';
$lang = new Language(APPLICATION_PATH . '/widgets/footer');
if(isset($_SESSION['language']))
{
	$language_id = $_SESSION['language'];
	$tbLanguage = new Language_Model_Language();
	$name = $tbLanguage->getNameLanguage($language_id);
	$lang->load($name['name']);
}
else
	$lang->load('Default');	
	$title		= $lang->get('text_title');	
	$search	= $lang->get('text_search');	
	$btn_go	= $lang->get('text_go');
	$product	= $lang->get('text_product');
	$qa	= $lang->get('text_qa');
	$news	= $lang->get('text_news');
	$error = $lang->get('error_text_go');
	if(isset($_GET['search_value']) && isset($_GET['search_type']))
	{
		$value = $_GET['search_value'];
		$type = $_GET['search_type'];
	}
	else{
		$value = "";
		$type = "";
	}
?>
<div id="head">
<div id="head_cen">
<div id="head_sup" class="head_height">
<div id="top">
<ul>
<li><?php echo $title?></li>
<li>+0123 456 789</li>
<li>info@EStore.com</li>
</ul>
</div>
<div id="head_con">
<a href="#"><img src="/images/logo.png" alt="" class="logo"/></a>
<script type="text/javascript" charset="utf-8">
function checksearchinput(){
if($.trim($('#search_value').val())== "<?php echo $search?>"){
alert('<?php echo $error;?>');
return false;}
}
</script>
<form name="searchForm" action="/search" method="get" onsubmit="return checksearchinput()">
<p class="search">
<input type="hidden" value="1" name="show" />
<input id="search_value" name="search_value" type="text" value="<?php if($value=="") echo $search; else echo $value; ?>" class="txt" onclick="if(this.value=='<?php echo $search?>') this.value=''" onblur="if(this.value=='') this.value='<?php echo $search?>'" />
<select name="search_type" style="float: left;height: 25px;text-align:left;padding:2px; font-family: 'Trebuchet MS',Arial,Helvetica,sans-serif; font-size: 14px;">
<option value="1" <?php if($type==1){?>selected="selected"<?php }?>><?php echo $product;?></option>
<option value="2" <?php if($type==2){?>selected="selected"<?php }?>><?php echo $news;?></option>
<option value="3" <?php if($type==3){?>selected="selected"<?php }?>><?php echo $qa;?></option>
</select>
<input type="submit" class="btn" value="<?php echo $btn_go?>" />
</p>
</form>
<?php 
$front     = Zend_Controller_Front::getInstance();
$language = $front->getPlugin('Language_Plugin_Init');
echo $language->content;
?>
<div id="navigator">
<?php 
$menu = $front->getPlugin('Menu_Plugin_Init');
echo $menu->content;
?>
</div></div></div></div></div>
<div id="content">
<div class="content_height">
<div id="large_banner">
<div id="banner_content">
<h1>Donect egestas</h1>
<p>Vestibulum ante ipsum primis in faucibus orci luctus vel tortor eu arcu condimentum varius.</p>
</div>
</div>
<div id="content_left">
<?php echo $this->layout()->content ?>
<?php 
	$widgets = $front->getPlugins();
	$html = array();
	foreach($widgets as $widget)
	{
		if($widget->enable == 1 && $widget->type == "content")
			$html[$widget->order] =  $widget->content;
	}
	ksort($html);
	foreach($html as $key=>$value)
		echo $value;
?>
</div>
<div id="content_right">
<?php 
	$html = array();
	foreach($widgets as $widget)
	{
		if($widget->enable == 1 && $widget->type == "sidebar")
			$html[$widget->order] =  $widget->content;
	}
	ksort($html);
	foreach($html as $key=>$value)
	echo $value;
?>
</div>
</div>
</div>
<div id="footer">
<div class="footer_height">
<div id="footer_left">
<?php 
$footer = $front->getPlugin('Footer_Plugin_Init');
echo $footer->content;
?>
</div>
<div id="footer_right">
<a href="#"><img src="/images/rss.gif" alt=""/></a>
<a href="http://www.facebook.com"><img src="/images/facebook.gif" alt=""/></a>
<a href="http://www.twitter.com"><img src="/images/twitter.gif" alt=""/></a>
</div>
</div>
</div>
</body>
</html>